home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 7 / CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso / • CD Funhouse System 6 Only • / • The Arcade • / Uttan Attack ••• / Utaan Attack / Utaan Attack.rsrc / CODE_1.txt < prev    next >
Text File  |  1987-08-20  |  10KB  |  174 lines

  1. # near model CODE resource
  2. # jump table entries: 0-0 (1 of them)
  3. export_0:
  4. 00000000  99CC                     sub.l      A4, A4
  5. 00000002  A036                     syscall    MoreMasters
  6. 00000004  A036                     syscall    MoreMasters
  7. 00000006  42A7                     clr.l      -[A7]
  8. 00000008  2F3C 4143 524C           move.l     -[A7], 0x4143524C /* 'ACRL' */
  9. 0000000E  487A 0188                pea.l      [PC + 0x188 /* 00000198, value 0x6626173, pstring "bas.rl" */]
  10. 00000012  A9A1                     syscall    GetNamedResource
  11. 00000014  281F                     move.l     D4, [A7]+
  12. 00000016  6716                     beq        +0x18 /* 0000002E */
  13. 00000018  21C4 0A78                move.l     [0x00000A78 /* ApplScratch */], D4
  14. 0000001C  2044                     movea.l    A0, D4
  15. 0000001E  A029                     syscall    HLock
  16. 00000020  2810                     move.l     D4, [A0]
  17. 00000022  0284 00FF FFFF           andi.l     D4, 0xFFFFFF
  18. 00000028  2644                     movea.l    A3, D4
  19. 0000002A  4EFA 0100                jmp        [PC + 0x100 /* 0000012C */]
  20. label0000002E:
  21. 0000002E  203C 0000 9C40           move.l     D0, 0x9C40
  22. 00000034  A122                     syscall    NewHandle, flags=1
  23. 00000036  670A                     beq        +0xC /* 00000042 */
  24. 00000038  487A 017E                pea.l      [PC + 0x17E /* 000001B8, value 0xD4F7574 '\rOut', pstring "Out of memory" */]
  25. 0000003C  42A7                     clr.l      -[A7]
  26. 0000003E  4EFA 0116                jmp        [PC + 0x116 /* 00000156 */]
  27. label00000042:
  28. 00000042  A029                     syscall    HLock
  29. 00000044  21C8 0A78                move.l     [0x00000A78 /* ApplScratch */], A0
  30. 00000048  2810                     move.l     D4, [A0]
  31. 0000004A  0284 00FF FFFF           andi.l     D4, 0xFFFFFF
  32. 00000050  2644                     movea.l    A3, D4
  33. 00000052  204B                     movea.l    A0, A3
  34. 00000054  D1FC 0000 9840           add.l      A0, 0x9840
  35. 0000005A  2248                     movea.l    A1, A0
  36. 0000005C  303C 0025                move.w     D0, 0x25 /* '%' */
  37. label00000060:
  38. 00000060  4259                     clr.w      [A1]+
  39. 00000062  51C8 FFFC                dbf        D0, -0x6 /* 00000060 */
  40. 00000066  4A78 03F6                tst.w      [0x000003F6 /* FSFCBLen */]
  41. 0000006A  6B40                     bmi        +0x42 /* 000000AC */
  42. 0000006C  43FA 011A                lea.l      A1, [PC + 0x11A /* 00000188, value 0xE424153, pstring "BASIC Overlays" */]
  43. 00000070  2149 0012                move.l     [A0 + 0x12], A1
  44. 00000074  42A8 0030                clr.l      [A0 + 0x30]
  45. 00000078  303C 0001                move.w     D0, 0x1
  46. 0000007C  A060                     syscall    FSDispatch/HFSDispatch
  47. 0000007E  4A40                     tst.w      D0
  48. 00000080  6606                     bne        +0x8 /* 00000088 */
  49. 00000082  4EBA 007C                jsr        [PC + 0x7C /* 00000100 */]
  50. 00000086  6752                     beq        +0x54 /* 000000DA */
  51. label00000088:
  52. 00000088  3178 0210 0016           move.w     [A0 + 0x16], [0x00000210 /* BootDrive */]
  53. 0000008E  42A8 0012                clr.l      [A0 + 0x12]
  54. 00000092  A207                     syscall    GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
  55. 00000094  43FA 00F2                lea.l      A1, [PC + 0xF2 /* 00000188, value 0xE424153, pstring "BASIC Overlays" */]
  56. 00000098  2149 0012                move.l     [A0 + 0x12], A1
  57. 0000009C  303C 0001                move.w     D0, 0x1
  58. 000000A0  A060                     syscall    FSDispatch/HFSDispatch
  59. 000000A2  4A40                     tst.w      D0
  60. 000000A4  6606                     bne        +0x8 /* 000000AC */
  61. 000000A6  4EBA 0058                jsr        [PC + 0x58 /* 00000100 */]
  62. 000000AA  672E                     beq        +0x30 /* 000000DA */
  63. label000000AC:
  64. 000000AC  4268 0016                clr.w      [A0 + 0x16]
  65. 000000B0  4EBA 004E                jsr        [PC + 0x4E /* 00000100 */]
  66. 000000B4  6724                     beq        +0x26 /* 000000DA */
  67. 000000B6  3178 0210 0016           move.w     [A0 + 0x16], [0x00000210 /* BootDrive */]
  68. 000000BC  4A78 03F6                tst.w      [0x000003F6 /* FSFCBLen */]
  69. 000000C0  6B06                     bmi        +0x8 /* 000000C8 */
  70. 000000C2  42A8 0012                clr.l      [A0 + 0x12]
  71. 000000C6  A207                     syscall    GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
  72. label000000C8:
  73. 000000C8  4EBA 0036                jsr        [PC + 0x36 /* 00000100 */]
  74. 000000CC  670C                     beq        +0xE /* 000000DA */
  75. 000000CE  487A 00DC                pea.l      [PC + 0xDC /* 000001AC, value 0xB43616E, pstring "Cannot find" */]
  76. 000000D2  2F28 0012                move.l     -[A7], [A0 + 0x12]
  77. 000000D6  4EFA 007E                jmp        [PC + 0x7E /* 00000156 */]
  78. label000000DA:
  79. 000000DA  214B 0020                move.l     [A0 + 0x20], A3
  80. 000000DE  217C 0000 9C40 0024      move.l     [A0 + 0x24], 0x9C40
  81. 000000E6  4268 002C                clr.w      [A0 + 0x2C]
  82. 000000EA  A002                     syscall    Read
  83. 000000EC  4A40                     tst.w      D0
  84. 000000EE  672C                     beq        +0x2E /* 0000011C */
  85. 000000F0  0C40 FFD9                cmpi.w     D0, 0xFFD9
  86. 000000F4  6726                     beq        +0x28 /* 0000011C */
  87. 000000F6  487A 00CE                pea.l      [PC + 0xCE /* 000001C6, value 0x14424153, pstring "BASIC Internal Error" */]
  88. 000000FA  42A7                     clr.l      -[A7]
  89. 000000FC  4EFA 0058                jmp        [PC + 0x58 /* 00000156 */]
  90. fn00000100:
  91. 00000100  43FA 0096                lea.l      A1, [PC + 0x96 /* 00000198, value 0x6626173, pstring "bas.rl" */]
  92. 00000104  2149 0012                move.l     [A0 + 0x12], A1
  93. 00000108  4228 001A                clr.b      [A0 + 0x1A]
  94. 0000010C  117C 0001 001B           move.b     [A0 + 0x1B], 0x1
  95. 00000112  42A8 001C                clr.l      [A0 + 0x1C]
  96. 00000116  A000                     syscall    Open/PBHOpen/HOpen
  97. 00000118  4A40                     tst.w      D0
  98. 0000011A  4E75                     rts
  99. label0000011C:
  100. 0000011C  A001                     syscall    Close
  101. 0000011E  2028 0028                move.l     D0, [A0 + 0x28]
  102. 00000122  21C0 0A7C                move.l     [0x00000A7C], D0
  103. 00000126  2078 0A78                movea.l    A0, [0x00000A78 /* ApplScratch */]
  104. 0000012A  A024                     syscall    SetHandleSize
  105. label0000012C:
  106. 0000012C  4E56 FEAE                link       A6, -0x0152
  107. 00000130  244F                     movea.l    A2, A7
  108. 00000132  43F8 0910                lea.l      A1, [0x00000910 /* CurApName */]
  109. 00000136  203C 0000 0020           move.l     D0, 0x20 /* ' ' */
  110. label0000013C:
  111. 0000013C  34D9                     move.w     [A2]+, [A1]+
  112. 0000013E  51C8 FFFC                dbf        D0, -0x6 /* 0000013C */
  113. 00000142  244F                     movea.l    A2, A7
  114. 00000144  7E00                     moveq.l    D7, 0x00
  115. 00000146  203A 0058                move.l     D0, [PC + 0x58 /* 000001A0, value 0x1582, cstring "" */]
  116. 0000014A  2C3A 0058                move.l     D6, [PC + 0x58 /* 000001A4, value 0xB0F4, cstring "" */]
  117. 0000014E  283A 0058                move.l     D4, [PC + 0x58 /* 000001A8, value 0x4C0, cstring "" */]
  118. 00000152  4EEB 0074                jmp        [A3 + 0x74]
  119. label00000156:
  120. 00000156  42B8 0A78                clr.l      [0x00000A78 /* ApplScratch */]
  121. 0000015A  486D FFFC                pea.l      [A5 - 0x4]
  122. 0000015E  A86E                     syscall    InitGraf
  123. 00000160  A8FE                     syscall    InitFonts
  124. 00000162  A912                     syscall    InitWindows
  125. 00000164  A930                     syscall    InitMenus
  126. 00000166  A9CC                     syscall    TEInit
  127. 00000168  42A7                     clr.l      -[A7]
  128. 0000016A  A97B                     syscall    InitDialogs
  129. 0000016C  A850                     syscall    InitCursor
  130. 0000016E  42A7                     clr.l      -[A7]
  131. 00000170  42A7                     clr.l      -[A7]
  132. 00000172  A98B                     syscall    ParamText
  133. 00000174  4267                     clr.w      -[A7]
  134. 00000176  3F3C 0109                move.w     -[A7], 0x109
  135. 0000017A  2F3C 0000 0000           move.l     -[A7], 0x0
  136. 00000180  A986                     syscall    StopAlert
  137. 00000182  544F                     addq.w     A7, 2
  138. 00000184  91C8                     sub.l      A0, A0
  139. 00000186  4E75                     rts
  140. 00000188  0E42 4153                .invalid.w D2, 0x4153 /* 'AS' */ // invalid immediate operation
  141. 0000018C  4943                     chk.w      D4, D3
  142. 0000018E  204F                     movea.l    A0, A7
  143. 00000190  7665                     moveq.l    D3, 0x65
  144. 00000192  726C                     moveq.l    D1, 0x6C
  145. 00000194  6179                     bsr        +0x7B /* 0000020F */
  146. 00000196  7300                     moveq.l    D1, 0x00
  147. 00000198  0662 6173                addi.w     -[A2], 0x6173 /* 'as' */
  148. 0000019C  2E72 6C00                movea.l    A7, [A2 + D6 * 4]
  149. 000001A0  0000 1582                ori.b      D0, 0x82
  150. 000001A4  0000 B0F4                ori.b      D0, 0xF4
  151. 000001A8  0000 04C0                ori.b      D0, 0xC0
  152. 000001AC  0B43                     bchg       D3, D5
  153. 000001AE  616E                     bsr        +0x70 /* 0000021E */
  154. 000001B0  6E6F                     bgt        +0x71 /* 00000221 */
  155. 000001B2  7420                     moveq.l    D2, 0x20
  156. 000001B4  6669                     bne        +0x6B /* 0000021F */
  157. 000001B6  6E64                     bgt        +0x66 /* 0000021C */
  158. 000001B8  0D4F                     bchg       A7, D6
  159. 000001BA  7574                     moveq.l    D2, 0x74
  160. 000001BC  206F 6620                movea.l    A0, [A7 + 0x6620]
  161. 000001C0  6D65                     blt        +0x67 /* 00000227 */
  162. 000001C2  6D6F                     blt        +0x71 /* 00000233 */
  163. 000001C4  7279                     moveq.l    D1, 0x79
  164. 000001C6  1442                     movea.b    A2, D2
  165. 000001C8  4153                     chk.w      D0, [A3]
  166. 000001CA  4943                     chk.w      D4, D3
  167. 000001CC  2049                     movea.l    A0, A1
  168. 000001CE  6E74                     bgt        +0x76 /* 00000244 */
  169. 000001D0  6572                     bcs        +0x74 /* 00000244 */
  170. 000001D2  6E61                     bgt        +0x63 /* 00000235 */
  171. 000001D4  6C20                     bge        +0x22 /* 000001F6 */
  172. 000001D6  4572 726F                chk.w      D2, [A2 + D7.w * 2 + 0x6F]
  173. 000001DA  7200                     moveq.l    D1, 0x00
  174.